//app.js
var gio = require("utils/gio-minp/index.js").default;
gio('init', '8874757032d7405c', 'wx84c43ea68ec35b79', { version: '1.0', followShare: true });
App({
  onLaunch: function (option) {
    let scene = option.scene
    console.log(option)
    if (scene == 1047 || scene == 1048 || scene == 1049 || scene ==1011 || scene ==1012  ||scene ==1013){
      //小程序从扫描二维码进来的
      wx.setStorageSync('sourceCode', option.query.scene)
    }
   //获取所有字典数据
    //从stroage中获取token  存放全局数据里面
    let token = wx.getStorageSync('usertoken');
    this.globalData.token = token;
    this.globalData.source = option.query.scene;
  },
  globalData: {
    gio,
    isLogin: wx.getStorageSync('isLogin') == '' ? false : wx.getStorageSync('isLogin'),
    token:"",
    source: "",
    // serverUrl: 'http://192.168.1.194:9000',
    serverUrl: 'https://yimiao-uat.e-hqins.com',
    // serverUrl:'https://yimiao-prd.e-hqins.com'
  }
})

